<?php

namespace App\Model\Blog;

use App\User;
use Illuminate\Database\Eloquent\Model;

class Post extends Model
{
    public function User(){
        return $this->belongsTo(User::class);
    }
    public function Category(){
        return $this->morphMany(CategoriesPost::class);
    }
}
